from pandas import DataFrame
import pandas as pd

all_data = {} #先建立一个字典，用来存储股票对应的价格

for code in ['600028SH','600128SH','600228SH','600328SH','600428SH','600528SH','600628SH','600728SH','600828SH','600928SH']:
    filename = code + '.new.csv'
    df = pd.read_csv(filename, parse_dates=['Date Time'], index_col=['Date Time'], sep=',') 
    df = df[ ['Close' ]]
    print(df.head())
    all_data[code] = df


price = DataFrame({key: value['Close'] for key, value in all_data.items()})
print("price",price.head())